# -*- coding: utf-8 -*-

'a test module'

__author__ = 'xcl'

import sys


def test():
    args = sys.argv
    if len(args) == 1:
        print('Hello, world!')
    elif len(args) == 2:
        print('Hello, %s!' % args[1])
    else:
        print('Too many arguments!')


if __name__ == '__main__':
    test()


def _private_1(name):
    return 'hello %s' % name


def __private_2(name):
    return 'hi %s' % name


def greeting(name):
    if len(name) > 3:
        return _private_1(name)
    else:
        return __private_2(name)
